/**
 * 
 */
package com.joyzone.weixin.user;

import net.sf.json.JSONObject;

/**
 * 用户基本信息model
 * 
 * @author yulm
 * @date 2014-01-22
 */
public class UserInfo {
	// 用户的唯一标识
	private String OpenID;
	// 用户昵称
	private String NickName;
	// 用户的性别(值为1时是男性，值为2时是女性，值为0时是未知)
	private String Sex;
	// 用户个人资料填写的省份
	private String Province;
	// 普通用户个人资料填写的城市
	private String City;
	// 国家，如中国为CN
	private String Country;
	// 用户头像(最后一个数值代表正方形头像大小（有0、46、64、96、132数值可选，0代表640*640正方形头像），用户没有头像时该项为空)
	private String HeadImgUrl;
	// 用户的语言(简体中文为zh_CN)
	private String Language;

	public UserInfo(JSONObject data){
		OpenID = data.getString("openid");
		NickName = data.getString("nickname");
		Sex = data.getString("sex");
		Province = data.getString("province");
		City = data.getString("city");
		Country = data.getString("country");
		HeadImgUrl = data.getString("headimgurl");
		Language = data.getString("language");
	}
	
	public String getOpenID() {
		return OpenID;
	}
	public void setOpenID(String openID) {
		OpenID = openID;
	}
	public String getNickName() {
		return NickName;
	}
	public void setNickName(String nickName) {
		NickName = nickName;
	}
	public String getSex() {
		return Sex;
	}
	public void setSex(String sex) {
		Sex = sex;
	}
	public String getProvince() {
		return Province;
	}
	public void setProvince(String province) {
		Province = province;
	}
	public String getCity() {
		return City;
	}
	public void setCity(String city) {
		City = city;
	}
	public String getCountry() {
		return Country;
	}
	public void setCountry(String country) {
		Country = country;
	}
	public String getHeadImgUrl() {
		return HeadImgUrl;
	}
	public void setHeadImgUrl(String headImgUrl) {
		HeadImgUrl = headImgUrl;
	}
	public String getLanguage() {
		return Language;
	}
	public void setLanguage(String language) {
		Language = language;
	}
	
	
}
